<template>
	<view class="wrap">
		<uni-calendar :selected="selected" @change="change"  />
		
	</view>
</template>

<script setup>
	import {
		reactive,
		ref
	} from 'vue';
	import HolidayCalendar from 'holiday-calendar';
	const calendar = new HolidayCalendar();
	calendar.getDates('CN', 2025).then(dates => {
		console.log('2025年法定假期相关日期:', dates.filter(v => v.type === "public_holiday"));
	});
	// const single = ref('2025-06-08');

				const selected = ref([
					{
						date:'2025-06-08',
						info:'打卡',
						data: { custom: '自定义信息', name: '自定义消息头',}
					}
				])
				const change = (e)=>{
					console.log('change',e)
				}
</script>

<style lang="scss" scoped>

</style>